<?php

namespace App\Http\Models;

use Illuminate\Database\Eloquent\Model;

class Profession extends Model
{
    public $table = 'profession';
    public $primaryKey = 'id';
    public $fillable = ['name', 'type_id', 'img', 'mark_up', 'abulm', 'teacher_id', 'price'];
    public $timestamps = false;

    //TODO 注意： teacher_id 字段 和 abulm 字段到时候保存的数据需要做数据类型的转换
    protected $casts = [
        'teacher_id' => 'array',
        'abulm' => 'array',
    ];



}
